home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Charlie Rose Science Series Anthology
/
The Charlie Rose Science Series Anthology (Pfizer, Inc.)(2008).iso
/
mac
/
Charlie Rose Science Series Anthology.app
/
Contents
/
Resources
/
movie.swf
/
scripts
/
__Packages
/
mx
/
controls
/
streamingmedia
/
ToEndButton.as
< prev
next >
Wrap
Text File
|
2008-02-01
|
1KB
|
33 lines
class mx.controls.streamingmedia.ToEndButton extends MovieClip
{
function ToEndButton()
{
super();
this.init();
}
function init()
{
this.attachMovie("SimpleButton","toEndSimpleButton",1,{falseUpSkin:"ToEnd-False-Up",falseOverSkin:"ToEnd-False-Over",falseDownSkin:"ToEnd-False-Down",falseDisabledSkin:"ToEnd-False-Disabled"});
this.toEndSimpleButton.addEventListener("click",this);
var _loc2_ = this._parent._parent;
_loc2_.evaluateToEnd();
this.tabEnabled = false;
this.tabChildren = true;
}
function get enabled()
{
return this.toEndSimpleButton.enabled;
}
function set enabled(is)
{
this.toEndSimpleButton.enabled = is;
}
function click(ev)
{
var _loc2_ = this._parent._parent;
mx.controls.streamingmedia.Tracer.trace("ToEndButton.click: playAtBeginning=false");
_loc2_.playAtBeginning = false;
_loc2_.broadcastEvent("playheadChange",100);
}
}